import request from '@/utils/request'

// 查询主办方列表
export function listOrganizers(query) {
  return request({
    url: '/admin/organizers/organizers/list',
    method: 'get',
    params: query
  })
}

// 查询主办方详细
export function getOrganizers(id) {
  return request({
    url: '/admin/organizers/organizers/' + id,
    method: 'get'
  })
}

// 新增主办方
export function addOrganizers(data) {
  return request({
    url: '/admin/organizers/organizers',
    method: 'post',
    data: data
  })
}

// 修改主办方
export function updateOrganizers(data) {
  return request({
    url: '/admin/organizers/organizers',
    method: 'put',
    data: data
  })
}

// 删除主办方
export function delOrganizers(id) {
  return request({
    url: '/admin/organizers/organizers/' + id,
    method: 'delete'
  })
}
